<template>
  <div class="closePanel">
    <div class="title">{{closetitle}}</div>
    <span class="setwin" @click="closePanel">
      <img src="../images/close.png" class="close-icon">
    </span>
  </div>
</template>
<script>
import { mapState, mapMutations } from "vuex";
export default {
  name: "closePanel",
  props: ['closetitle'],
  data() {
    return {};
  },
  mounted() {
  },
  computed: {},
  methods: {
      closePanel(){
          this.$emit("closePanelfunc");
      }
  }
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "../css/rule.scss";
.closePanel {
  position: relative;
  width: 100%;
  .title {
    border-top: 22px solid transparent;
    border-left: 10px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 0;
    border-image: url(../images/bg04.png) 22 45 22 10 round;
    background-color: transparent;
    height: 20px;
    line-height: 25px;
    background-image: url(../images/bg05.png), url(../images/bg04_02.png);
    background-repeat: no-repeat, no-repeat;
    background-position: left center, center;
    background-size: auto, 100% 100%;
    padding-left: 20px;
    padding-right: 35px;
    font-size: 16px;
    color: #ffffff;
    padding-bottom: 5px;
  }
  .setwin {
    width: 39px;
    height: 26px;
    position: absolute;
    right: 0;
    top: -10px;
    cursor: pointer;
    img {
      width: 100%;
      height: 100%;
      background: url(../images/close.png) no-repeat right top;
      margin-left: 0;
    }
  }
}
</style>
<style rel="stylesheet/scss" lang="scss" >
</style>
